package per.ace.starter;

import org.example.girl.GirlDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springbootDemo
 * @description: StarterDemo 启动类
 * @author: ace
 * @Date: 2019-12-31 21:49
 **/
@SpringBootApplication
@RestController
public class StarterBootStrap {
    public static void main(String[] args) {
        SpringApplication.run(StarterBootStrap.class,args);
    }
    @Autowired
    private GirlDemo girlDemo;

    @GetMapping("hello")
    public String hello(){
        return girlDemo.doSomeThing();
    }
}
